<?php
/**
 * 注入一级栏目
 */
ini_set('display_errors',1);
include dirname(dirname(dirname(__FILE__))).'/utils.func.php';
include dirname(dirname(dirname(__FILE__))).'/models/c2_task_model.php';
include dirname(dirname(dirname(dirname(dirname(__FILE__))))).'/np/np_string.php';
$action = isset($_GET['action']) ? $_GET['action'] : 'add';
define('ORGID', 'xjdx_zte');
if($action=='add')
{
	$category_info = array(
	'nns_category_id' => '003',
        'nns_parent_id' => '10000',
        'nns_name' => '新疆库看',
        'nns_sort' => null,
        'nns_task_id' => '10000',
        'nns_task_name' => '新疆库看',
	);
	c2_task_model::add_categoy($category_info,ORGID);	
}
else if($action == 'del')
{
	$category_info = array(
		'nns_id' => '10000',
		'nns_task_id'=> '10000',
		'nns_task_name'=> '新疆库看',
	);	
	c2_task_model::delete_category($category_info,ORGID);	
}



echo 'OK';
